// 广告
import request from '@/utils/request'
import qs from 'qs'

export function getAdvert() {
  return request({
    url: '/getAdvert/',
    method: 'get'
  })
}

export function increaseAdvert(data) {
  return request({
    url: '/increaseAdvert/',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function fileUpload(data) {
  return request({
    url: '/fileUpload/',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function updateAdvert(data) {
  return request({
    url: '/updateAdvert/',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function deleteAdvert(data) {
  return request({
    url: '/deleteAdvert/',
    method: 'post',
    data: qs.stringify(data)
  })
}
